//
//  HBLabelDemoViewController.m
//  HBLibary_Example
//
//  Created by Rambo on 2018/8/31.
//  Copyright © 2018年 Rambo. All rights reserved.
//

#import "HBLabelDemoViewController.h"
#import <HBLibary/HBLibary.h>

@interface HBLabelDemoViewController ()

@end

@implementation HBLabelDemoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 200, 40)];
    label.backgroundColor = [UIColor redColor];
    label.text = @"我是普通的UILabel";
    [self.view addSubview:label];
    
    UILabel *testLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 200, 200, 40)];
    testLabel.backgroundColor = [UIColor redColor];
    testLabel.text = @"我是可以copy的UILabel";
    testLabel.hb_canCopy = YES;
//    testLabel.hb_copyBlock = ^(UILabel *labelBlock) {
//        UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
//        pasteboard.string = labelBlock.text;
//    };
    [self.view addSubview:testLabel];
}



@end
